package com.sto.stoapp.entity;

import com.sto.stoapp.http.BaseMessage;

/**
 * 网点编号实体类
 * 
 * @author mgf
 * 
 */
public class SiteCodeEntity extends BaseEntity {
	// 网点编号
	private String siteCodeNumber;
	// 网点名称
	private String siteCodeName;

	private String id;
	private String version;
	private String backup1;

	public SiteCodeEntity() {

	}

	public SiteCodeEntity(String responseDetail) {
		String[] data = responseDetail.split(BaseMessage.SPILTE
				+ BaseMessage.SEPARATOR);
		if (data.length > 0) {
			siteCodeNumber = data[0].trim();
		}
		if (data.length > 1) {
			siteCodeName = data[1].trim();
		}
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getVersion() {
		return version;
	}

	public void setVersion(String version) {
		this.version = version;
	}

	public String getBackup1() {
		return backup1;
	}

	public void setBackup1(String backup1) {
		this.backup1 = backup1;
	}

	public String getSiteCodeNumber() {
		return siteCodeNumber;
	}

	public void setSiteCodeNumber(String siteCodeNumber) {
		this.siteCodeNumber = siteCodeNumber;
	}

	public String getSiteCodeName() {
		return siteCodeName;
	}

	public void setSiteCodeName(String siteCodeName) {
		this.siteCodeName = siteCodeName;
	}

}
